#define _CRT_SECURE_NO_WARNINGS 1
#define _CRT_SECURE_NO_WARNINGS 1
#include"SSList.h"
void Inite(Tool* aa)
{
	aa->pfrist = NULL;
	aa->ptail = NULL;
	aa->sum = 0;

}
Queue* Creat(SLType x) {
	Queue* newnode = (Queue*)malloc(sizeof(SLType));

	newnode->next = NULL;

	newnode->val = x;

	return newnode;


}
void Print(Tool* aa) {
	Queue* cur = aa->pfrist;
	while (cur != aa->ptail->next) {
		printf("%d", cur->val);
		cur = cur->next;
	}

}

void PushBack(Tool* aa, SLType x) {
	Queue* new = Creat(x);
	if (aa->pfrist == NULL) {


		aa->pfrist = aa->ptail = new;

	}
	else
	{
		aa->ptail->next = new;
		aa->ptail = new;

	}


}